Action hook 'add_site_option_{$option}'
in WP Core File wp-includes/option.php at line 2180
Description
Fires after a specific network option has been successfully added. The dynamic portion of the hook name, `$option`, refers to the option name.
Occurrences
Filename |
Line Number |
wp-includes/option.php |
2180 |
Parameters
Type |
Name |
Description |
string |
$option |
Name of the network option. |
mixed |
$value |
Value of the network option. |
int |
$network_id |
ID of the network. |
PHP Doc
/**
* Fires after a specific network option has been successfully added.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* @since 2.9.0 As "add_site_option_{$key}"
* @since 3.0.0
* @since 4.7.0 The `$network_id` parameter was added.
*
* @param string $option Name of the network option.
* @param mixed $value Value of the network option.
* @param int $network_id ID of the network.
*/